<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\library\Token;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        echo '欢迎光临嘉和空间,请联系嘉和相关人员……';
        exit;
    }

    public function news()
    {
        $newslist = [];
        return jsonp(['newslist' => $newslist, 'new' => count($newslist), 'url' => 'https://www.fastadmin.net?ref=news']);
    }


    /**
     * @return Request
     */
    public function test() {
        aw_log(['time'=>time(),'第一次'], 'test.log');
        sleep(11);
        aw_log(['time'=>time(),'第2次'], 'test.log');
        echo 89;exit;
    }
    public function testshow(){
        return $this->view->fetch();
    }

}
